home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- set the visible of sprite 11 to rollOver(4)
- set the visible of sprite 12 to rollOver(5)
- set the visible of sprite 18 to rollOver(5)
- set the visible of sprite 13 to rollOver(6)
- set the visible of sprite 19 to rollOver(6)
- set the visible of sprite 14 to rollOver(7)
- set the visible of sprite 20 to rollOver(7)
- set the visible of sprite 21 to rollOver(8)
- set the visible of sprite 15 to rollOver(8)
- set the visible of sprite 16 to rollOver(9)
- set the visible of sprite 22 to rollOver(9)
- set the cursor of sprite 4 to 280
- set the cursor of sprite 5 to 280
- set the cursor of sprite 6 to 280
- set the cursor of sprite 7 to 280
- set the cursor of sprite 8 to 280
- set the cursor of sprite 9 to 280
- set the cursor of sprite 25 to 280
- set the cursor of sprite 26 to 280
- set the cursor of sprite 27 to 280
- set the cursor of sprite 28 to 280
- set the cursor of sprite 29 to 280
- set the cursor of sprite 31 to 280
- set the cursor of sprite 10 to 280
- end
-
- on keyDown
- global gAlpha
- cursor(4)
- case the key of
- "a":
- set i to "A"
- "b":
- set i to "B"
- "c":
- set i to "C"
- "d":
- set i to "D"
- "e":
- set i to "E"
- "f":
- set i to "F"
- "g":
- set i to "G"
- "h":
- set i to "H"
- "i":
- set i to "I"
- "j":
- set i to "J"
- "k":
- set i to "K"
- "l":
- set i to "L"
- "m":
- set i to "M"
- "n":
- set i to "N"
- "o":
- set i to "O"
- "p":
- set i to "P"
- "q":
- set i to "Q"
- "r":
- set i to "R"
- "s":
- set i to "S"
- "t":
- set i to "T"
- "u":
- set i to "U"
- "v":
- set i to "V"
- "w":
- set i to "W"
- "x":
- set i to "X"
- "y":
- set i to "Y"
- "z":
- set i to "Z"
- "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z":
- set i to the key
- put i
- end case
- put i into field "alphakey"
- UpdateAlpha()
- case i of
- "A":
- set gAlpha to 1
- "B":
- set gAlpha to 2
- "C":
- set gAlpha to 3
- "D":
- set gAlpha to 4
- "E":
- set gAlpha to 5
- "F":
- set gAlpha to 6
- "G":
- set gAlpha to 7
- "H":
- set gAlpha to 8
- "I":
- set gAlpha to 9
- "J":
- set gAlpha to 10
- "K":
- set gAlpha to 11
- "L":
- set gAlpha to 12
- "M":
- set gAlpha to 13
- "N":
- set gAlpha to 14
- "O":
- set gAlpha to 15
- "P":
- set gAlpha to 16
- "Q":
- set gAlpha to 17
- "R":
- set gAlpha to 18
- "S":
- set gAlpha to 19
- "T":
- set gAlpha to 20
- "U":
- set gAlpha to 21
- "V":
- set gAlpha to 22
- "W":
- set gAlpha to 23
- "X":
- set gAlpha to 24
- "Y":
- set gAlpha to 25
- "Z":
- set gAlpha to 26
- end case
- cursor(-1)
- end
-
- on alertIt
- beep()
- alert("You pressed an A")
- end
-
- on UpdateAlpha
- global gTB
- puppetSound(1, "pioolb")
- mSetCriteria(gTB, "appname", "start", field "alphaKey")
- mSelect(gTB)
- set n to mSelectCount(gTB)
- if n <> 0 then
- put n into field "NumberFound"
- put mGetField(gTB, "category") into field "category"
- put mGetField(gTB, "appname") into field "appname"
- put mGetField(gTB, "highs") into field "highs"
- put mGetField(gTB, "lows") into field "lows"
- put mGetField(gTB, "BottomLine") into field "BottomLine"
- put field "Ratings" & "%" into field "Rating"
- put mGetField(gTB, "AlphSortKey") into field "AlphSortKey"
- put mGetField(gTB, "CoName") into field "CoName"
- put mGetField(gTB, "Address") into field "Address"
- put mGetField(gTB, "City") into field "City"
- put mGetField(gTB, "State") into field "State"
- put mGetField(gTB, "Zip") into field "Zip"
- put mGetField(gTB, "Phone") into field "Phone"
- put mGetField(gTB, "Phone2") into field "Phone2"
- put mGetField(gTB, "email") into field "email"
- else
- CheckAlphaSearch()
- end if
- showSelection()
- updateDisplay()
- end
-
- on CheckAlphaSearch
- global gAlpha
- set gAlpha to gAlpha + 1
- if gAlpha > 26 then
- set gAlpha to 1
- end if
- put char gAlpha of field "alphaBet" into field "alphakey"
- UpdateAlpha()
- end
-